<?php

namespace app\common\validate\Subject;

use think\Validate;

// 课程分类的验证器
class Chapter extends Validate
{
  /**
   * 验证规则
   */
  protected $rule = [
    'title'   => ['require'],
    'url' => ['require']
  ];


  /**
   * 提示消息
   */
  protected $message = [
    'title.require' => '章节标题名称必填',
    'url.require' => '课程视频链接必填',
  ];
  
  /**
   * 验证场景
   */
  protected $scene = [];
}
